
import { getBindVillagesList, saveBindList, echoBindCodes, lock, unlock } from '@/services/bindVillageApi';

export default {
    namespace: 'bindVillage',

    state: {

    },

    effects: {


        *getBindVillagesList({ payload }, { call, put }) {
            const response = yield call(getBindVillagesList, payload);
            return response;
        },


        *saveBindList({ payload }, { call, put }) {
            const response = yield call(saveBindList, payload);
            return response;
        },


        *echoBindCodes({ payload }, { call, put }) {
            const response = yield call(echoBindCodes, payload);
            return response;
        },

        *lock({ payload }, { call, put }) {
            const response = yield call(lock, payload);
            return response;
        },

        *unlock({ payload }, { call, put }) {
            const response = yield call(unlock, payload);
            return response;
        },



    },

    reducers: {

    },
};
